Skip to content

Fix client_init() assert#116

Merged
sirainen merged 3 commits intodovecot:mainfrom
slusarz:client_init_assert_fix
Apr 30, 2026
Merged

Fix client_init() assert#116
sirainen merged 3 commits intodovecot:mainfrom
slusarz:client_init_assert_fix

Conversation

@slusarz
Copy link
Copy Markdown
Contributor

@slusarz slusarz commented Apr 24, 2026

No description provided.

Copy link
Copy Markdown
Contributor

@sirainen sirainen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whoa, the first unit test, crazy stuff.

Comment thread src/client.c Outdated
@slusarz slusarz force-pushed the client_init_assert_fix branch 2 times, most recently from c6dd6af to f4508a4 Compare April 30, 2026 16:56
Comment thread src/test-client-stalled.c Outdated
Comment thread src/test-client-stalled.c Outdated
Comment thread src/test-client-stalled.c Outdated
slusarz added 3 commits April 30, 2026 12:10
If a stalled client's index is reassigned to a new connection before
the stalled client is restarted, client_init() would trigger an
assertion failure.

Fixes triggering assertion:
Panic: file client.c: line 252 (client_init): assertion failed: (idx >= array_count(&clients) || *(struct client **)array_idx(&clients, idx) == NULL)
@slusarz slusarz force-pushed the client_init_assert_fix branch from f4508a4 to 72a0e5a Compare April 30, 2026 18:13
@sirainen sirainen merged commit 58718e2 into dovecot:main Apr 30, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants